package org.jetlinks.pro.auth.configuration;

import org.jetlinks.pro.auth.service.TenantMemberService;
import org.jetlinks.pro.auth.web.WebFluxUserController;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(SystemConfigProperties.class)
public class CustomAuthenticationConfiguration {

    @Bean
    @Primary
    public WebFluxUserController webFluxUserController(TenantMemberService service){
        return new WebFluxUserController(service);
    }
}
